package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;
import com.gavel.database.SQLExecutor;

import java.util.Date;

@TableMeta(name = "SYNC_LOG", title = "同步日志")
public class SyncLog {

    @FieldMeta(name = "ID", title = "ID", length = 32, primary = true)
    private String id;

    @FieldMeta(name = "SHOPNAME", title = "店铺名称", length = 32)
    private String shopName;

    @FieldMeta(name = "APPKEY", title = "APPKEY", length = 32)
    private String appkey;

    @FieldMeta(name = "THEDATE", title = "日期", length = 20)
    private String thedate;

    @FieldMeta(name = "NAME", title = "任务名称", length = 100)
    private String name;

    @FieldMeta(name = "PARAMS", title = "参数", length = 2000)
    private String params;

    @FieldMeta(name = "STARTTIME", title = "开始时间")
    private Date starttime;

    @FieldMeta(name = "ENDTIME", title = "结束时间")
    private Date endtime;

    @FieldMeta(name = "STATE", title = "状态", length = 8)
    private String state;

    @FieldMeta(name = "MESSAGE", title = "状态", length = 50000)
    private String message;


    public SyncLog() {
    }

    public SyncLog(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getThedate() {
        return thedate;
    }

    public void setThedate(String thedate) {
        this.thedate = thedate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static void main(String[] args) throws Exception {
        SQLExecutor.createTable(SyncLog.class);
    }
}
